#pragma once
#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>

#define INIT_CAPACITY 2
#define NEW_INIT_CAPACITY 3

typedef struct Info
{
	char name[12];
	char sex[8];
	int age;
	char telephone[12];
	char address[20];
}Info;

typedef struct Address_Book
{
	int num;
	int capacity;
	Info book[0];
}Address_Book;

enum difficult_name
{
	Exit,
	Add,
	Del,
	Search,
	Modify,
	Show,
	Empty,
	Sort
};

void Init(Address_Book** Book);
void Add_info(Address_Book** Book);
void Del_info(Address_Book** Book);
void Store(Address_Book** Book);
void Search_info(Address_Book** Book);
void Modify_info(Address_Book** Book);
void Show_info(Address_Book** Book);
void Empty_info(Address_Book** Book);
void Sort_info(Address_Book** Book);


